<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用人单位信息管理--编辑</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="<%=request.getContextPath()%>/js/beforeClose.js"></script>
<script type="text/javascript">
	function check(){
    	var reLetterOrDigit = /^[a-zA-Z0-9_]{4,10}$/i;
		var frm = document.form1;
		if(frm.unitUserName.value == ""){
			alert("请输入姓名！");
			frm.unitUserName.focus();
			return false;
		}
   		  var pwd = frm.unitUserPassword.value;
		   var pwd1 =frm.unitUserPassword1.value;
		   if(pwd.length <= 16 && pwd.length >= 6) {
			   if (pwd != pwd1) {
			         alert("两个密码不相同");
			         return false;
			      }
			}else{
			 alert("密码为6—16位之间");
			 return false;	
			} 
		changeLoadPage();
	}
</script>
</head>
<body>
<form name="form1" action="<%=request.getContextPath()%>/UnitUser.do?method=update&uid=${uInfo.unitUserId }" method="post" onsubmit="return check()">
<input type="hidden" name="pages" value="${nowPage}"/>
<table width="100%">
  <tr>
    <td width="25%" align="right" class="bg_blue"><p><font color="red">*</font>&nbsp;&nbsp;单位：</p>
    </td>
    <td width="75%" align="left" >
 	<input type="hidden" name="unitUserUnitId" value="${uInfo.unitUser.empInfoId }">
    ${uInfo.unitUser.empInfoName }
	&nbsp;</td>
  </tr>
 <tr>
    <td width="25%" align="right" class="bg_blue"><p><font color="red">*</font>&nbsp;&nbsp;姓名：</p>
    </td>
    <td width="75%" align="left" ><input type="text" name="unitUserName" value="${uInfo.unitUserName }" maxlength="32">&nbsp;</td>
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>性别：</p>
    </td>
    <td width="75%" align="left" >
    <select name="unitUserSex"><option value="0" <c:if test="${uInfo.unitUserSex  == '0'}">selected</c:if>>男</option><option value="1" <c:if test="${uInfo.unitUserSex == '1'}">selected</c:if>>女</option></select>&nbsp;
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p><font color="red">*</font>&nbsp;&nbsp;登陆名：</p>
    </td>
    <td width="75%" align="left" >${uInfo.unitUserLoginName }&nbsp;
    </td>
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p><font color="red">*</font>&nbsp;&nbsp;密码：</p>
    </td>
    <td width="75%" align="left" ><input type="password" name="unitUserPassword" value="${uInfo.unitUserPassword }" maxlength="32">&nbsp;
     &nbsp;&nbsp;&nbsp;&nbsp;<span class="hui">密码字符数为6-16位之间，字母、数字、符号均可</span>
    </td>
  </tr>
   <tr>
    <td width="25%" align="right" class="bg_blue"><p><font color="red">*</font>&nbsp;&nbsp;确认密码：</p>
    </td>
    <td width="75%" align="left" >
    <p><input class="registerinput" type="password" id="lname1" name="unitUserPassword1" value="${uInfo.unitUserPassword }" />&nbsp;&nbsp;&nbsp;&nbsp;<span class="hui">请再次输入上面的密码</span></p>
    </td>
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>部门：</p>
    </td>
    <td width="75%" align="left" ><input type="text" name="unitUserDepart" value="${uInfo.unitUserDepart }" maxlength="25">&nbsp;</td>
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>职务：</p>
    </td>
    <td width="75%" align="left" ><input type="text" name="unitUserDuty" value="${uInfo.unitUserDuty }" maxlength="25">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="nohover">
    <input type="submit" class="buttonsubmit" onClick="" value="提交"/>&nbsp;
     <input type="reset" class="buttonreset" value="重置"/>
    <input type="button" class="buttonreturn" onClick="history.back(-1);" value="返回"/></td>
  </tr>
</table>
</form>
</body>
</html>
